import { NavBar } from 'antd-mobile'
import React from 'react'
import { useNavigate } from 'react-router-dom'
import styles from './css/Navbars.module.css'
function Navbars(props) {
    let nav=useNavigate()
  return (
    <div className={styles.box}>
      <NavBar onBack={()=>nav(-1)}>{props.title}</NavBar>
    </div>
  )
}

export default Navbars
